package com.mryao.gxkygl.init;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @author: zmj
 * : 2020/1/3 15:30
 * @Description: 启动后做一些事情
 * @Version: 1.0
 */
@Component
public class Init implements CommandLineRunner {

    private static final Logger logger = LoggerFactory.getLogger(Init.class);

    @Override
    public void run(String... strings) throws Exception {
        //加载数据字典缓存或者热点数据?  数据量不大 直接走数据库 或者用二级缓存？
        logger.info("{init ..... }");
    }
}
